load("@build_bazel_rules_android//android:rules.bzl", "android_library")

licenses(["notice"])

package(
    default_testonly = 1,
    default_visibility = ["//visibility:public"],
)

java_library(
    name = "fake_monitoring_client",
    srcs = ["FakeMonitoringClient.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/monitoring:monitoring_client",
        "//src/main/java/com/google/crypto/tink/monitoring:monitoring_keyset_info",
    ],
)

android_library(
    name = "fake_monitoring_client-android",
    srcs = ["FakeMonitoringClient.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/monitoring:monitoring_client-android",
        "//src/main/java/com/google/crypto/tink/monitoring:monitoring_keyset_info-android",
    ],
)

java_library(
    name = "parameters_with_serialization",
    srcs = ["ParametersWithSerialization.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink:parameters",
        "//src/main/java/com/google/crypto/tink/internal:proto_parameters_serialization",
    ],
)

android_library(
    name = "parameters_with_serialization-android",
    srcs = ["ParametersWithSerialization.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink:parameters-android",
        "//src/main/java/com/google/crypto/tink/internal:proto_parameters_serialization-android",
    ],
)

java_library(
    name = "key_with_serialization",
    srcs = ["KeyWithSerialization.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink:key",
        "//src/main/java/com/google/crypto/tink/internal:proto_key_serialization",
    ],
)

android_library(
    name = "key_with_serialization-android",
    srcs = ["KeyWithSerialization.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink:key-android",
        "//src/main/java/com/google/crypto/tink/internal:proto_key_serialization-android",
    ],
)

java_library(
    name = "asserts",
    srcs = ["Asserts.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/internal:proto_key_serialization",
        "//src/main/java/com/google/crypto/tink/internal:proto_parameters_serialization",
        "@maven//:com_google_protobuf_protobuf_java",
        "@maven//:com_google_truth_truth",
    ],
)

android_library(
    name = "asserts-android",
    srcs = ["Asserts.java"],
    deps = [
        "//src/main/java/com/google/crypto/tink/internal:proto_key_serialization-android",
        "//src/main/java/com/google/crypto/tink/internal:proto_parameters_serialization-android",
        "@maven//:com_google_protobuf_protobuf_javalite",
        "@maven//:com_google_truth_truth",
    ],
)

android_library(
    name = "big_integer_test_util-android",
    srcs = ["BigIntegerTestUtil.java"],
)

java_library(
    name = "big_integer_test_util",
    srcs = ["BigIntegerTestUtil.java"],
)
